import axios from '../../node_modules/axios/dist/axios.min.js';
import {defaultsDeep} from '../../node_modules/lodash/lodash.js'
/**
 * axios 实例生成器
 * created by wjxu on 2017-02-20T14:18:07+0800
 * @return {axios} axios的实例
 */
function createAxios(ax) {
    return function(opts = {}){
        return ax.create(defaultsDeep({
            baseURL: 'http://localhost/mythumb/',
            timeout: 30000
        }, opts));
    }
}
let myAxios = createAxios(axios);

export {
    myAxios,
};
